﻿using System;

namespace Risesun.Extend
{
    public static class TypeHelper
    {
        /// <summary>
        ///     判断是否是常用的简单类型
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static bool IsSimpleType(this Type type)
        {
            return type.IsValueType || type == typeof (string);
        }
    }
}